package cn.livingCloud.dto;

import cn.livingCloud.entity.content.ReplyRule;
import cn.livingCloud.utils.DateUtils;
import cn.livingCloud.wechat.protocol.MsgType;

/**
 * Created by sujiantang on 2015/12/10.
 */
public class ReplyRuleDto {

    private String uuid;

    private String keyWord;

    private MsgType msgType;

    private boolean enable;

    private String dateTime;

    public ReplyRuleDto() {
    }

    public ReplyRuleDto(ReplyRule replyRule) {
        this.uuid = replyRule.getUuid();
        this.keyWord = replyRule.getKeyWord();
        this.msgType = replyRule.getMsgType();
        this.enable = replyRule.isEnable();
        this.dateTime = DateUtils.toDateText(replyRule.getDateTime(), DateUtils.DEFAULT_DATE_TIME_FORMAT);
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getKeyWord() {
        return keyWord;
    }

    public void setKeyWord(String keyWord) {
        this.keyWord = keyWord;
    }

    public MsgType getMsgType() {
        return msgType;
    }

    public void setMsgType(MsgType msgType) {
        this.msgType = msgType;
    }

    public boolean isEnable() {
        return enable;
    }

    public void setEnable(boolean enable) {
        this.enable = enable;
    }

    public String getDateTime() {
        return dateTime;
    }

    public void setDateTime(String dateTime) {
        this.dateTime = dateTime;
    }

}
